import React from 'react';
import ReactDOM from 'react-dom';
import {GlobalStyle} from './style.js';
import App from "./App";
import {GlobalIconFont} from './static/iconfont/iconfont'
import 'antd/dist/antd.css'
import 'slick-carousel/slick/slick.css'
import 'slick-carousel/slick/slick-theme.css'
import {Provider} from "react-redux";
import store from "./store";
import {ConfigProvider} from 'antd';
import zhCN from 'antd/es/locale/zh_CN';
/* 为原生原型添加方法 */
import "@/util/ProtoType";
import md5 from 'js-md5';

/* 注释掉下面的方法可以恢复控制台输出 */
// console.log = function (){}
React.Component.prototype.$md5 = md5;
const Main = (
    <Provider store={store}>
        <GlobalIconFont/>
        <GlobalStyle/>
        <ConfigProvider locale={zhCN}>
            <App/>
        </ConfigProvider>
    </Provider>
)
ReactDOM.render(Main, document.getElementById('root'));
